/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_offer_prod_comp_detail.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_OFFER_PROD_COMP_DETAIL
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_offer_prod_comp_detail.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_OFFER_PROD_COMP_DETAIL::CTable_PPM_OFFER_PROD_COMP_DETAIL( )
 :NPCRecordSet( )
{
  setTableName( "PPM_OFFER_PROD_COMP_DETAIL" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  ROLE_CD.setField( "ROLE_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( ROLE_CD );
  
  MAX_COUNT.setField( "MAX_COUNT", DATA_DOUBLE, 22, 0 );
  makeTableItem( MAX_COUNT );
  MIN_COUNT.setField( "MIN_COUNT", DATA_DOUBLE, 22, 0 );
  makeTableItem( MIN_COUNT );
  RULE_TYPE.setField( "RULE_TYPE", DATA_CHAR, 6, 0 );
  makeTableItem( RULE_TYPE );
	PRODUCT_ID.setField( "PRODUCT_ID", DATA_CHAR, 30, 0 );
  makeTableItem( PRODUCT_ID );
}


CTable_PPM_OFFER_PROD_COMP_DETAIL::CTable_PPM_OFFER_PROD_COMP_DETAIL( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_OFFER_PROD_COMP_DETAIL" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  ROLE_CD.setField( "ROLE_CD", DATA_DOUBLE, 22, 0 );
  makeTableItem( ROLE_CD );
  
  MAX_COUNT.setField( "MAX_COUNT", DATA_DOUBLE, 22, 0 );
  makeTableItem( MAX_COUNT );
  MIN_COUNT.setField( "MIN_COUNT", DATA_DOUBLE, 22, 0 );
  makeTableItem( MIN_COUNT );
  RULE_TYPE.setField( "RULE_TYPE", DATA_CHAR, 6, 0 );
  makeTableItem( RULE_TYPE );
	PRODUCT_ID.setField( "PRODUCT_ID", DATA_CHAR, 30, 0 );
  makeTableItem( PRODUCT_ID );
}

CTable_PPM_OFFER_PROD_COMP_DETAIL::~CTable_PPM_OFFER_PROD_COMP_DETAIL( )
{
    close();
}

